try:
    a = int(input("输入a:"))
    b = int(input("输入b:"))
    c = a/b
    print("a/b={}".format(c))
except ValueError:
    print("不能输入整数以外的值")
except ZeroDivisionError:
    print("除数不能为0")